home *** CD-ROM | disk | FTP | other *** search
- -------------------------------------------------------------------------------
- | ScrnDisk - Copyright (C) 1987 Ken Bell - All Rights Reserved. |
- -------------------------------------------------------------------------------
-
- ScrnDisk is a memory resident screen dump utility; it dumps the contents of
- an 80 character text screen to a disk file. The disk file is opened just
- before and closed just after the dump. Just before making itself resident,
- ScrnDisk requests the pathname of the file it is to write to .. any valid DOS
- pathname may be used; if the file does not exist, ScrnDisk will create it; if
- the file does exist, ScrnDisk will append each dump taken to the end of the
- file. If the file is erased, ScrnDisk will create it again when the next dump
- is requested. It is recommended that a full pathname be specified, so that one
- may move across subdirectories freely, while always dumping to the same file.
- Although ScrnDisk does not accept arguments from its command line, input can
- be redirected from a file, so if you wish, you may create a (very small) file
- containing the pathname that you want scrndisk to use (for example, suppose we
- want to include ScrnDisk in an AUTOEXEC.BAT file, with the screen dump file
- always being C:\TEMP\SCRNDISK.DMP, the file containing the filespec being
- C:\UTIL\SCRNDISK.INI, and with ScrnDisk residing in C:\UTIL\SCRNDISK.COM; we
- can create SCRNDISK.INI to contain the single line, C:\TEMP\SCRNDISK.DMP, and
- include in our AUTOEXEC.BAT file the line:
-
- C:\UTIL\SCRNDISK < C:\UTIL\SCRNDISK.INI
-
- which will cause the pathname contained in SCRNDISK.INI to be accepted by
- ScrnDisk at the time it makes itself resident). ScrnDisk occupies 3856
- bytes of memory when resident.
-
-
- The file produced by ScrnDisk contains 82 characters per line, since a full 80
- characters per line are assumed (i.e., that's the width of the screen line that
- you are dumping .. including any trailing blanks) to which ScrnDisk adds a
- carriage return and linefeed. Therefore the DOS TYPE command will display the
- dump file as if it were double spaced, however a file viewing utility such as
- BROWSE will display the file correctly. If you re-save the file with almost
- any editor (DAED is my favorite), the trailing blanks will be deleted.
-
- The basic idea is that ScrnDisk points the BIOS interrupt 9 vector to its own
- code so that it can itercept all keyboard activity. When a key is pressed,
- ScrnDisk checks whether a screen dump is being requested (i.e., if
- Ctrl-LeftShift-RightShift was pressed) and, if it is, stores the characters
- presently on the screen in a buffer, appends a carriage return and linefeed to
- each line of text, and then writes the contents of the buffer to disk. If any
- other key was pressed, ScrnDisk simply passes the interrupt request on to the
- original BIOS keyboard handler.
-
- ScrnDisk will not dump if the video mode is not an 80 character text mode (2,
- 3, or 7). It has been tested on an XT clone with a Hercules clone board,
- however it is designed to work properly with a CGA board also. I have no idea
- what it will do in the presence of an EGA board. It seems fully compatible
- with SIMCGA (that indispensible CGA emulation program for the Herc board) and
- with DOS-EDIT.
-
- ScrnDisk does NOT check to see if it is already resident. I recommend that if
- you decide to use it, include it in your AUTOEXEC.BAT file so that you don't
- load it twice by mistake. To remove it from memory, you must reboot DOS.
-
- This program may not be sold, rented, or used commercially without my express
- written permission. No fee may be collected for its distribution. It may,
- however, be distributed FREE of all charges via BBS upload or any other
- method. If you really like it, use it, and want to support it, please don't
- send me money .. send a contribution, in whatever amount you feel appropriate,
- to a good charitable organization. My personal favorites are Coalition for
- the Homeless, Partnership for the Homeless, and the Multiple Sclerosis
- Society. Feel free to support another charity if you prefer.
-
- I would be happy to receive comments, suggestions, and reports of (yechh!)
- BUGS.
-
- -------------------------------------------------------------------------------
- | Ken Bell .. 232 East Sixth Street .. New York, NY 10003 |
- -------------------------------------------------------------------------------